//! @author Adam Emil Skoog
//! @date   2012-01-05

#include "Decoration.h"
#include "Game.h"

namespace mehdi
 {
	Decoration::Decoration()
	:
	image(NULL)
	 {
	 }

	void Decoration::draw() const
	 {
		if (getImage())
		 {
			getImage()->SetPosition(position());
			Game::getWindow()->Draw(*getImage());
		 }
	 }

	Decoration &Decoration::setImage(Image *const image)
	 {
		this->image = image;
		return *this;
	 }

	Image *const Decoration::getImage() const
	 {
		return image;
	 }
 }
